package com.neusoft.neuiotms.dcam.common.dto;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.dto.AbstractDTO;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class PrinterDTO extends AbstractDTO {

    private static final long serialVersionUID = 1L;

    /** 打印机IP */
    @NotBlank(message = "打印机IP不能为空")
    @Length(max = 255, message = "打印机IP不能超过{max}位")
    private String ip;

    private int port = 1;

    private String belongs;

    private String departmentCode;
    private String departmentName;
    private String labelTitle;
    /** 打印标签纸左侧边距 */
    private float leftMargin = 0f;

}
